package top.wilsonlv.jaguar.commons.web;

import java.util.HashSet;
import java.util.Set;

/**
 * @author lvws
 * @since 2022/3/9 0009
 */
public interface WebConstant {

    String MATCH_ALL = "/**/*";

    String REQUEST_ACCESS_TIME = "REQUEST_ACCESS_TIME";

    String HTML = ".html";
    String JS = ".js";
    String JS_MAP = ".js.map";
    String CSS = ".css";

    String ICO = ".ico";
    String PNG = ".png";
    String JPG = ".jpg";

    String WOFF = ".woff";
    String WOFF2 = ".woff2";
    String TTF = ".ttf";

    Set<String> STATIC_RESOURCE_EXTENSIONS = new HashSet<String>() {{
        add(HTML);
        add(JS);
        add(JS_MAP);
        add(CSS);
        add(ICO);
        add(PNG);
        add(JPG);
        add(WOFF);
        add(WOFF2);
        add(TTF);
    }};

}
